package com.celesea.auth.menu.entity;

import com.celesea.framework.entity.BaseEntity;

import javax.persistence.Column;
import javax.persistence.Table;

/**
 * ${DESCRIPTION}
 *
 * @author JackYuan
 * @create 2017-10-25 17:19
 */
@Table(name="`menu`")
public class Menu extends BaseEntity {

    @Column(name = "`module`",columnDefinition = "模块名称")
    private String module;
    @Column(name = "`code`",columnDefinition = "资源编码")
    private String code;
    @Column(name = "`name`",columnDefinition = "资源名称")
    private String name;
    @Column(name = "`sort`",columnDefinition = "排序")
    private Integer sort;
    @Column(name = "`icon`",columnDefinition = "图标")
    private String icon;
    @Column(name = "`url`",columnDefinition = "链接")
    private String url;
    @Column(name = "`parent_id`",columnDefinition = "父级菜单")
    private String parentId;
    @Column(name = "`menu_flag`",columnDefinition = "菜单标志：[0：资源，1：菜单]")
    private Byte menuFlag;
    @Column(name = "`leaf`",columnDefinition = "叶子节点")
    private Byte leaf;
    @Column(name = "`status_flag`",columnDefinition = "启停用状态：[0：停用，1：启用]")
    private Byte statusFlag;

    public String getModule() {
        return module;
    }

    public void setModule(String module) {
        this.module = module;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getIcon() {
        return icon;
    }

    public void setIcon(String icon) {
        this.icon = icon;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getParentId() {
        return parentId;
    }

    public void setParentId(String parentId) {
        this.parentId = parentId;
    }

    public Byte getLeaf() {
        return leaf;
    }

    public void setLeaf(Byte leaf) {
        this.leaf = leaf;
    }

    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }

    public Byte getStatusFlag() {
        return statusFlag;
    }

    public void setStatusFlag(Byte statusFlag) {
        this.statusFlag = statusFlag;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public Byte getMenuFlag() {
        return menuFlag;
    }

    public void setMenuFlag(Byte menuFlag) {
        this.menuFlag = menuFlag;
    }
}

